<?php
	// /ajax/core/admin/service/toggleSessionDebug.php?flag=1&url=/home.html
	
	if($_REQUEST["flag"] == 1){
		echo "admin activate";
		//$_SESSION["debug"] = true;
		setcookie("cawebfldebug", true, 0, "/");
	} else {
		echo "admin disactivate";
		//$_SESSION["debug"] = false;
		setcookie("cawebfldebug", false, 0, "/");
	}
	
	if(isset($_REQUEST["url"])){
		header("Location: http://".$_SERVER['HTTP_HOST'].$_REQUEST["url"]);
	} else {
		print_r($_COOKIE);
	}
?>